package com.example.covid19.entity.Enum;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

public class MessageTemplate {
    public static final Map<Integer, MessageTemplate> map = new HashMap<>();

    static {
        map.put(1, new MessageTemplate("每日打卡通知", "请及时进行打卡!", LocalDateTime.now(),LocalDate.now().plusDays(7), 0, null));
        map.put(2, new MessageTemplate("调寝申请通知", "您接收到了一条调寝申请", LocalDateTime.now(),LocalDate.now().plusDays(7), 1, null));
        map.put(3, new MessageTemplate("请假申请结果通知", "审批通过", LocalDateTime.now(),LocalDate.now().plusDays(7), 2, null));
        map.put(4, new MessageTemplate("请假申请结果通知", "审批未通过", LocalDateTime.now(),LocalDate.now().plusDays(7),3, null));
        map.put(5, new MessageTemplate("换寝申请结果通知", "审批通过", LocalDateTime.now(),LocalDate.now().plusDays(7),5, null));
        map.put(6, new MessageTemplate("换寝申请结果通知","审批未通过",LocalDateTime.now(),LocalDate.now().plusDays(7),6, null));
        map.put(7, new MessageTemplate("学生换寝通知","请及时审批",LocalDateTime.now(),LocalDate.now().plusDays(7),8, null));
        map.put(9, new MessageTemplate("学生请假通知","请及时审批",LocalDateTime.now(),LocalDate.now().plusDays(7),9, null));
    }

    private final String title;
    private final String content;
    private final LocalDateTime sendTime;
    private final LocalDate expirationTime;
    private final Integer temp;
    private final String uid;

    MessageTemplate(String title, String content, LocalDateTime sendTime, LocalDate expirationTime, Integer temp, String uid) {
        this.title = title;
        this.content = content;
        this.sendTime = sendTime;
        this.expirationTime = expirationTime;
        this.temp = temp;
        this.uid = uid;
    }


    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public LocalDate getExpirationTime(){return expirationTime;}

    public Integer getTemp(){return temp;}
}
